﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Data.Infrastructure;
using Domain;
using Domain.Entities;

namespace Data.Repositories
{
    /// <summary>
    /// This interface uses the IQueryable<T> interface to allow a sequence of Product objects to be obtained,
    /// without saying anything about how or where the data is stored or how it will be retrieved. A class that uses
    /// the IProductRepository interface can obtain Product objects without needing to know anything about
    /// where they are coming from or how they will be delivered. This is the essence of the repository pattern.
    /// </summary>
    public interface IProductsRepository : IRepository<Product, PageData<Product>>
    {
        IQueryable<Product> Products { get; }
    }
}
